
package org.soaism.journey.service.entities;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "journey")
public class Journey {
	private long idnr;
	private Location startLocation;
	private Location endLocation;
	private String comment;
	private int startKm;
	private int endKm;
	private Car car;
	private Driver driver;
	private Reason reason;

	@XmlElement
	public void setIdnr(long idnr) {
		this.idnr = idnr;
	}
	
	public long getIdnr() {
		return idnr;
	}

	@XmlElement
	public Location getStartLocation() {
		return this.startLocation;
	}
	
	public void setStartLocation(Location startLocation) {
		this.startLocation = startLocation;
	}
	
	@XmlElement
	public Location getEndLocation() {
		return this.endLocation;
	}
	
	public void setEndLocation(Location endLocation) {
		this.endLocation = endLocation;
	}
	
	@XmlElement
	public String getComment() {
		return this.comment;
	}
	
	public void setComment(String comment) {
		this.comment = comment;
	}
	
	@XmlElement
	public int getStartKm() {
		return this.startKm;
	}
	
	public void setStartKm(int startKm) {
		this.startKm = startKm;
	}
	
	@XmlElement
	public int getEndKm() {
		return this.endKm;
	}
	
	public void setEndKm(int endKm) {
		this.endKm = endKm;
	}
	
	@XmlElement
	public Car getCar() {
		return this.car;
	}
	
	public void setCar(Car car) {
		this.car = car;
	}
	
	@XmlElement
	public Driver getDriver() {
		return this.driver;
	}
	
	public void setDriver(Driver driver) {
		this.driver = driver;
	}
	
	@XmlElement
	public Reason getReason() {
		return this.reason;
	}
	
	public void setReason(Reason reason) {
		this.reason = reason;
	}
	
}
